$(function () {
    var mySwiper = new Swiper('.swiper-container', {
        spaceBetween: 20,
        slidesPerView: 'auto',
        freeMode: true,
        scrollbar: {
            el: '.swiper-scrollbar',
        },
    });
    $('.swiper-slide p').bind('click', function (e) {
        e.stopPropagation()
        $(this).parent().siblings().find('.nav-item').stop().slideUp()
        $(this).next().stop().slideToggle()
    })

    $('html').bind('click', function () {
        $('.nav-item').stop().slideUp()
    })
})